package com.zhang.warehouse.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhang.warehouse.entity.WareInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 仓库信息 服务类
 * </p>
 *
 * @author 创世神
 * @since 2023-10-13
 */
public interface IWareInfoService extends IService<WareInfo> {

    IPage getWareInfoListPage(Integer pageNum, Integer pageSize, Map<String, Object> wareInfoSearchDto);

    /**获取运费
     * @param addressId 收货地址id
     * @return {@link BigDecimal}
     */
    BigDecimal getFreightByAddressId(Long addressId);
}
